]> dgit.raspbian.org Git - gnome-shell.git/commit
st/scroll-view: Use clutter_actor_get_effect() to get fade effect
authorSebastian Keller <skeller@gnome.org>
Mon, 2 Oct 2023 12:36:33 +0000 (14:36 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 6 Oct 2023 15:01:42 +0000 (15:01 +0000)
commitfae5bdaa0093ee8260d6693bfc1083df6e601090
treeb79c9db40ade0a2b381bdc97b4755af713636bf8
parenteaa20d951d09c2db6c33c177d4892f5f2c5611b5
st/scroll-view: Use clutter_actor_get_effect() to get fade effect

Storing the pointer to the fade effect only works as long as we control
all the code that can modify the effects of an actor, but this is not
the case in the presence of extensions. Apparently some extension
manages to remove the effect, which leads to fade_effect pointing to
some invalid address by the time dispose is called, leading to a crash.

This instead uses clutter_actor_get_effect() to get the effect when it
is needed to avoid crashing in these situations.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6521
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2974>
src/st/st-scroll-view.c